﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>选择要登录的站点</title>
<style type="text/css">
body,form,div,p{
	margin:0px;
	padding:0px;
	font-size:12px;
	font-family:微软雅黑, 宋体
}
</style>
</head>
<body>
<input type="hidden" id="site" value=""/>
<input type="hidden" id="ext" value=""/>
<script type="text/javascript" language="javascript">
	var targetUrl=null;
	(function(){
		var url=window.location+'';
		var findstr='?redirect=';
		url=decodeURIComponent(url.substr(url.indexOf(findstr)+findstr.length));
		if(url==null) return;
		var sitev=url.substr(0,url.lastIndexOf('.'));
		var extv=url.substr(url.lastIndexOf('.'));
		var el=document.getElementById('site');
		if(el!=null) {el.value=sitev;}
		el=document.getElementById('ext');
		if(el!=null) {el.value=extv;}
		targetUrl='http://'+sitev+'/tsim/login'+extv;
	})();
	function redirect(){
		window.location=targetUrl;
	}
</script>
</body>
</html>